#include "HeatConductionADKernel.h"

registerMooseObject("TrilobitaApp", HeatConductionADKernel);

InputParameters
HeatConductionADKernel::validParams()
{
    auto params = ADKernelGrad::validParams();
    return params;
}

HeatConductionADKernel::HeatConductionADKernel(const InputParameters& parameters)
    : ADKernelGrad(parameters),
    _k(getADMaterialProperty<Real>("thermal_conductivity"))
{}

ADRealVectorValue
HeatConductionADKernel::precomputeQpResidual()
{
    return _k[_qp] * _grad_u[_qp];
}
